Integrand size = 18, antiderivative size = 332 \[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=-\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-\frac {b d \operatorname {CosIntegral}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right ) \sin \left (a+b \sqrt [3]{c}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \operatorname {CosIntegral}\left (\sqrt [3]{-1} b \sqrt [3]{c}+b \sqrt [3]{c+d x}\right ) \sin \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right )}{3 c^{2/3}}-\frac {(-1)^{2/3} b d \operatorname {CosIntegral}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right ) \sin \left (a+(-1)^{2/3} b \sqrt [3]{c}\right )}{3 c^{2/3}}+\frac {b d \cos \left (a+b \sqrt [3]{c}\right ) \text {Si}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {(-1)^{2/3} b d \cos \left (a+(-1)^{2/3} b \sqrt [3]{c}\right ) \text {Si}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \cos \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right ) \text {Si}\left (\sqrt [3]{-1} b \sqrt [3]{c}+b \sqrt [3]{c+d x}\right )}{3 c^{2/3}} \]
[Out]
Time = 1.09 (sec) , antiderivative size = 332, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3513, 3423, 3414, 3384, 3380, 3383} \[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=-\frac {b d \sin \left (a+b \sqrt [3]{c}\right ) \operatorname {CosIntegral}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \sin \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right ) \operatorname {CosIntegral}\left (\sqrt [3]{-1} \sqrt [3]{c} b+\sqrt [3]{c+d x} b\right )}{3 c^{2/3}}-\frac {(-1)^{2/3} b d \sin \left (a+(-1)^{2/3} b \sqrt [3]{c}\right ) \operatorname {CosIntegral}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {b d \cos \left (a+b \sqrt [3]{c}\right ) \text {Si}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {(-1)^{2/3} b d \cos \left (a+(-1)^{2/3} b \sqrt [3]{c}\right ) \text {Si}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \cos \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right ) \text {Si}\left (\sqrt [3]{-1} \sqrt [3]{c} b+\sqrt [3]{c+d x} b\right )}{3 c^{2/3}}-\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x} \]
[In]
[Out]
Rule 3380
Rule 3383
Rule 3384
Rule 3414
Rule 3423
Rule 3513
Rubi steps \begin{align*} \text {integral}& = \frac {3 \text {Subst}\left (\int \frac {x^2 \cos (a+b x)}{\left (-\frac {c}{d}+\frac {x^3}{d}\right )^2} \, dx,x,\sqrt [3]{c+d x}\right )}{d} \\ & = -\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-b \text {Subst}\left (\int \frac {\sin (a+b x)}{-\frac {c}{d}+\frac {x^3}{d}} \, dx,x,\sqrt [3]{c+d x}\right ) \\ & = -\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-b \text {Subst}\left (\int \left (-\frac {d \sin (a+b x)}{3 c^{2/3} \left (\sqrt [3]{c}-x\right )}-\frac {d \sin (a+b x)}{3 c^{2/3} \left (\sqrt [3]{c}+\sqrt [3]{-1} x\right )}-\frac {d \sin (a+b x)}{3 c^{2/3} \left (\sqrt [3]{c}-(-1)^{2/3} x\right )}\right ) \, dx,x,\sqrt [3]{c+d x}\right ) \\ & = -\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}+\frac {(b d) \text {Subst}\left (\int \frac {\sin (a+b x)}{\sqrt [3]{c}-x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {(b d) \text {Subst}\left (\int \frac {\sin (a+b x)}{\sqrt [3]{c}+\sqrt [3]{-1} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {(b d) \text {Subst}\left (\int \frac {\sin (a+b x)}{\sqrt [3]{c}-(-1)^{2/3} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}} \\ & = -\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-\frac {\left (b d \cos \left (a+b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (b \sqrt [3]{c}-b x\right )}{\sqrt [3]{c}-x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\left (b d \cos \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\sqrt [3]{-1} b \sqrt [3]{c}+b x\right )}{\sqrt [3]{c}-(-1)^{2/3} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}-\frac {\left (b d \cos \left (a+(-1)^{2/3} b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\sin \left ((-1)^{2/3} b \sqrt [3]{c}-b x\right )}{\sqrt [3]{c}+\sqrt [3]{-1} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\left (b d \sin \left (a+b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (b \sqrt [3]{c}-b x\right )}{\sqrt [3]{c}-x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\left (b d \sin \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\sqrt [3]{-1} b \sqrt [3]{c}+b x\right )}{\sqrt [3]{c}-(-1)^{2/3} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\left (b d \sin \left (a+(-1)^{2/3} b \sqrt [3]{c}\right )\right ) \text {Subst}\left (\int \frac {\cos \left ((-1)^{2/3} b \sqrt [3]{c}-b x\right )}{\sqrt [3]{c}+\sqrt [3]{-1} x} \, dx,x,\sqrt [3]{c+d x}\right )}{3 c^{2/3}} \\ & = -\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-\frac {b d \operatorname {CosIntegral}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right ) \sin \left (a+b \sqrt [3]{c}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \operatorname {CosIntegral}\left (\sqrt [3]{-1} b \sqrt [3]{c}+b \sqrt [3]{c+d x}\right ) \sin \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right )}{3 c^{2/3}}-\frac {(-1)^{2/3} b d \operatorname {CosIntegral}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right ) \sin \left (a+(-1)^{2/3} b \sqrt [3]{c}\right )}{3 c^{2/3}}+\frac {b d \cos \left (a+b \sqrt [3]{c}\right ) \text {Si}\left (b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {(-1)^{2/3} b d \cos \left (a+(-1)^{2/3} b \sqrt [3]{c}\right ) \text {Si}\left ((-1)^{2/3} b \sqrt [3]{c}-b \sqrt [3]{c+d x}\right )}{3 c^{2/3}}+\frac {\sqrt [3]{-1} b d \cos \left (a-\sqrt [3]{-1} b \sqrt [3]{c}\right ) \text {Si}\left (\sqrt [3]{-1} b \sqrt [3]{c}+b \sqrt [3]{c+d x}\right )}{3 c^{2/3}} \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 4 in optimal.
Time = 0.77 (sec) , antiderivative size = 138, normalized size of antiderivative = 0.42 \[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=-\frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x}-\frac {1}{6} i b d \text {RootSum}\left [c-\text {$\#$1}^3\&,\frac {e^{-i a-i b \text {$\#$1}} \operatorname {ExpIntegralEi}\left (-i b \left (\sqrt [3]{c+d x}-\text {$\#$1}\right )\right )}{\text {$\#$1}^2}\&\right ]+\frac {1}{6} i b d \text {RootSum}\left [c-\text {$\#$1}^3\&,\frac {e^{i a+i b \text {$\#$1}} \operatorname {ExpIntegralEi}\left (i b \left (\sqrt [3]{c+d x}-\text {$\#$1}\right )\right )}{\text {$\#$1}^2}\&\right ] \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.33 (sec) , antiderivative size = 931, normalized size of antiderivative = 2.80
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(931\) |
default | \(\text {Expression too large to display}\) | \(931\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.31 (sec) , antiderivative size = 406, normalized size of antiderivative = 1.22 \[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=-\frac {2 \, \left (i \, b^{3} c\right )^{\frac {1}{3}} d x {\rm Ei}\left (i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \left (i \, b^{3} c\right )^{\frac {1}{3}}\right ) e^{\left (i \, a - \left (i \, b^{3} c\right )^{\frac {1}{3}}\right )} + 2 \, \left (-i \, b^{3} c\right )^{\frac {1}{3}} d x {\rm Ei}\left (-i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \left (-i \, b^{3} c\right )^{\frac {1}{3}}\right ) e^{\left (-i \, a - \left (-i \, b^{3} c\right )^{\frac {1}{3}}\right )} - \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} d x + d x\right )} {\rm Ei}\left (i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \frac {1}{2} \, \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} - 1\right )}\right ) e^{\left (\frac {1}{2} \, \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} + 1\right )} + i \, a\right )} - \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} d x + d x\right )} {\rm Ei}\left (-i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \frac {1}{2} \, \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} - 1\right )}\right ) e^{\left (\frac {1}{2} \, \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} + 1\right )} - i \, a\right )} - \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} d x + d x\right )} {\rm Ei}\left (i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \frac {1}{2} \, \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} - 1\right )}\right ) e^{\left (\frac {1}{2} \, \left (i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} + 1\right )} + i \, a\right )} - \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} d x + d x\right )} {\rm Ei}\left (-i \, {\left (d x + c\right )}^{\frac {1}{3}} b + \frac {1}{2} \, \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (i \, \sqrt {3} - 1\right )}\right ) e^{\left (\frac {1}{2} \, \left (-i \, b^{3} c\right )^{\frac {1}{3}} {\left (-i \, \sqrt {3} + 1\right )} - i \, a\right )} + 12 \, c \cos \left ({\left (d x + c\right )}^{\frac {1}{3}} b + a\right )}{12 \, c x} \]
[In]
[Out]
\[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=\int \frac {\cos {\left (a + b \sqrt [3]{c + d x} \right )}}{x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=\int { \frac {\cos \left ({\left (d x + c\right )}^{\frac {1}{3}} b + a\right )}{x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=\int { \frac {\cos \left ({\left (d x + c\right )}^{\frac {1}{3}} b + a\right )}{x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos \left (a+b \sqrt [3]{c+d x}\right )}{x^2} \, dx=\int \frac {\cos \left (a+b\,{\left (c+d\,x\right )}^{1/3}\right )}{x^2} \,d x \]
[In]
[Out]